﻿package com.youdo.utils.events {
	import flash.events.Event;

	/**
	 * @author shsun
	 */
	public class BaseEvent extends Event {
		
		protected var _data : Object;

		/**
		 * 
		 */
		public function BaseEvent(type : String, data : Object = null, bubbles : Boolean = false, cancelable : Boolean = false) {
			super(type, bubbles, cancelable);
			_data = data;
		}

		public function get data() : Object {
			return _data;
		}

		override public function clone() : Event {
			return ( new (Object(this).constructor as Class)(type, data, bubbles, cancelable) ) as Event;
		}
	}
}
